//
//  ServiceManager.h
//  Cabs
//
//  Created by Joey on 2018/5/15.
//  Copyright © 2018年 Happyev. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CocoaSecurity/CocoaSecurity.h>

@interface AFHTTPSessionManager (AFNManager)

+ (instancetype)shareManager;
-(void)jwxSecurity;

@end

@interface ServiceManager : NSObject
//取消所有请求
+ (void)cancelAllRequest;

//请求
+ (RACSignal *)postWithUrl:(NSString *)url param:(NSDictionary *)param reponseObjctClass:(Class)reponseObjctClass;

+ (RACSignal *)getWithUrl:(NSString *)url param:(NSDictionary *)param reponseObjctClass:(Class)reponseObjctClass;

+ (RACSignal *)deleteWithUrl:(NSString *)url param:(NSDictionary *)param Api_key:(NSString*)api_key reponseObjctClass:(Class)reponseObjctClass;


#pragma mark - 请求接口方法
+ (RACSignal *)requestWithPath:(NSString *)path requestParamter:(NSDictionary *)requestParamter reponseObjctClass:(Class)reponseObjctClass;
   
+(NSString *)convertToJsonData1:(NSDictionary *)dict;
@end
